package org.hako.recite.word.input;

/**
 * Prefix matcher.
 * 
 * @since 0.4.4
 * @author <a href="mailto:xnnyygn@gmail.com">xnnyygn</a>
 */
public interface PrefixMatcher {

	/**
	 * Check if could match.
	 * 
	 * @param roma
	 * @param index
	 *            current position of match
	 * @param length
	 * @return
	 */
	public boolean check(String roma, int index, int length);

	/**
	 * Match.
	 * 
	 * @param roma
	 * @param index
	 * @return
	 */
	public String match(String roma, int index);

	/**
	 * Get step length.
	 * 
	 * @return
	 */
	public int getStepLength();

}